
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class Flsplugin {
  static const MethodChannel _channel =
      const MethodChannel('flsplugin');

  static Future<String> get platformVersion async {
    final String version = await _channel.invokeMethod('getPlatformVersion');
    return version;
  }

  static Future<Map<dynamic, dynamic>> fls_init({
    @required String channel_id}) async {
    final Map<dynamic, dynamic> result = await _channel.invokeMethod('fls_init',{"channel_id": channel_id});
    return result;
  }
  static Future<Map<dynamic, dynamic>> fls_start({
    @required String user_id}) async {
    final Map<dynamic, dynamic> result = await _channel.invokeMethod('fls_start',{"user_id": user_id});
    return result;
  }

}
